/**
 * @Author: 焦质晔
 * @Date: 2019/6/20
 * @Last Modified by: max.jianhua
 * @Last Modified time: 2020-11-20 15:21:28
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';
// 三方融资查询
// 查询 /ttFiTripartite/queryTripartite
export const queryList = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartite/queryTripartite`,params )

// 明细 /ttFiTripartite/queryTripartiteDetail

export const queryDetailById = (Id) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartite/queryTripartiteDetail?id=${Id}`)

// 操作记录 /ttFiTripartiteApply/selectLog?id=1
export const queryLog = (Id) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/selectLog?id=${Id}`)

// 打印接口 /ttFiTripartiteApply/printStatus?ids=1&ids=2&ids=3
export const printStatus = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/printStatus`, {
  params
})
//撤回
export const withdrawStatus = (params) => axios.get(`${SERVER.WHOLESALES}/ttFiTripartiteApply/withdrawStatus`, {
  params
})
// 导出 /ttFiTripartite/tripartiteExportExcel

export const exportExcel = (params) => axios.post(`${SERVER.WHOLESALES}/ttFiTripartite/tripartiteExportExcel`, params, {
  responseType: 'blob'
});

// / 导出
export const exporturl = params => axios.post(`/api/cmscloud.excel/downloadExcel/exportExcel/${params.CODE}`, params);
